package com.toycloud.system.mapper.demand;


import com.toycloud.business.domain.DemandRecord;
import com.toycloud.business.domain.bo.DemandRecordBo;
import com.toycloud.business.domain.vo.DemandRecordVo;
import com.toycloud.business.domain.vo.PanelDto;
import com.toycloud.common.core.mapper.BaseMapperPlus;
import com.toycloud.system.domain.feedback.FeedbackConfig;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * demandMapper接口
 *
 * @author binlu6
 * @date 2024-10-31
 */
public interface DemandRecordMapper extends BaseMapperPlus<DemandRecordMapper, DemandRecord, DemandRecordVo> {

    List<PanelDto> queryPanelList(@Param("categoryType") List<String> categoryType);

    List<PanelDto> queryPanelListByModel(@Param("modelType") List<String> modelType);

    Integer queryStage(@Param("condition")DemandRecordBo bo);

    Integer queryStageByModel(@Param("condition")DemandRecordBo bo);

    DemandRecord queryById(@Param("id")Integer id);

    int updateByPrimaryKey(@Param("id")Integer id);

    int updateDemandId(@Param("id")Integer id);

    int updateVersion(@Param("id")Integer id,
                      @Param("appApply") List<String> appApply,
                      @Param("appVersion") List<String> appVersion,
                      @Param("versionCategory") List<String> versionCategory,
                      @Param("versionModel") List<String> versionModel,
                      @Param("versionModelVersion") List<String> versionModelVersion);

}
